package com.yoso.db.rest;

import com.yoso.core.bo.ResponseResult;
import com.yoso.db.UserService;
import com.yoso.db.mapper.UserMapper;
import com.yoso.starter.boot.annotation.LoggingArgs;
import com.zaxxer.hikari.pool.HikariPool;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;


    @GetMapping("/list")
    @LoggingArgs(printReturn = true)
    public ResponseResult<Object> log() {
        return ResponseResult.success(userService.getUserById());
    }
}
